﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL
{
    public class ItemPriceBLL
    {
        DAL.ItemPriceDAL itempricedal = new DAL.ItemPriceDAL();
        public DataTable getOrderItemPrice(string orderid)
        {
            return itempricedal.getOrderItemPrice("orderID="+orderid);
        }

        public DataTable getOrderItemPrice(string orderid, string styleid)
        {
            ItemBLL itembll = new ItemBLL();
            string itemid= itembll.getItemByStyle(styleid);
            OrderBLL orderbll = new OrderBLL();
            string username = orderbll.getOrderByID(orderid).Rows[0]["userName"].ToString();
            return itempricedal.getItemPrice(itemid,username);
        }
    }
}
